<!DOCTYPE html>
<html>
<head lang="gb">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Pragma" content="no-cache">
    <base id ="base" href="/LTR/">
    <script>
        document.getElementById("base").attributes.href.value=window.location.href.substring(0,window.location.href.indexOf("/pages")+1)
    </script>
    <script type="text/javascript" src="../static/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../static/js/ie6.pngfix.js"></script>
    <script type="text/javascript" src="../static/artDialog/dialog-plus-min.js"></script>
    <title></title>
    <!--<link type="text/css" rel="stylesheet" href="style/lib/base.css"/>-->
    <link type="text/css" rel="stylesheet" href="../static/style/lib/base-big.css"/>
    <link type="text/css" rel="stylesheet" href="../static/style/pop.css"/>
    <link type="text/css" rel="stylesheet" href="../static/style/input.css"/>
    <link type="text/css" rel="stylesheet" href="../static/artDialog/ui-dialog.css"/>

</head>
<body>
<form name="form1" id="form1">
<div class="pop-content-center">
    <div class="pop-line-center">
        <div class="invest-input-item">
            <div class="invest-input-label">
                <div class="fr">信息发布:</div>
            </div>
            <div class="invest-comp-r">
                <input type="checkbox" name="xxfb" value="企业"/>企业
                <input type="checkbox" name="xxlx" value="个人"/>个人
            </div>
        </div>

        <div class="invest-input-item">
            <div class="invest-input-label">
                <div class="fr">信息类型:</div>
            </div>
            <div class="invest-comp-r">
                <input type="checkbox" name="xxlx" value="债权投资"/>债权投资
                <input type="checkbox" name="xxlx" value="金融投资"/>金融投资
                <input type="checkbox" name="xxlx" value="BT/BOT项目投资"/>BT/BOT项目投资
                <input type="checkbox" name="xxlx" value="投资理财"/>投资理财
            </div>
        </div>
        <div class="invest-input-item">
            <div class="invest-input-label">
                <div class="fr">资金来源:</div>
            </div>
            <div class="invest-import-tip underline" onclick="popSelectZJ(this)">请选择资金来源</div>
            <div class="invest-tip-info error">普通会员最多可选5个资金来源</div>
            <div class="clear"></div>
            <div class="invest-input-label"></div>
            <div class="invest-input-text c-red" id="selectedZJ">已选择资金来源:企业资金,天使投资,金融租赁,投资公司,资产管理</div>
            <div class="clear"></div>
        </div>

        <script>
            function popSelectHY(ele){
                var selectJson = {};
                if (document.form1.selectedHY) {
                    var selectedArr = document.form1.selectedHY.value.split(",");
                    for (var i = 0; i < selectedArr.length; i++) {
                        selectJson[selectedArr[i]] = true;
                    }
                }
                var HYcontent="<div class='pop-select'><div class='invest-comp-r'>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='金融投资'" +  (selectJson["金融投资"]==true?"checked":"")+
                        "/>金融投资</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='房地产'" + (selectJson["房地产"]==true?"checked":"")+
                        "/>房地产</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='能源'" + (selectJson["能源"]==true?"checked":"")+
                        "/>能源</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='化学化工'" + (selectJson["化学化工"]==true?"checked":"")+
                        "/>化学化工</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='建筑材料'" + (selectJson["建筑材料"]==true?"checked":"")+
                        "/>建筑材料</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='节能环保'" + (selectJson["节能环保"]==true?"checked":"")+
                        "/>节能环保</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='矿产冶金'" + (selectJson["矿产冶金"]==true?"checked":"")+
                        "/>矿产冶金</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='基础设施'" + (selectJson["基础设施"]==true?"checked":"")+
                        "/>基础设施</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='农林牧渔'" + (selectJson["农林牧渔"]==true?"checked":"")+
                        "/>农林牧渔</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='国防军工'" + (selectJson["国防军工"]==true?"checked":"")+
                        "/>国防军工</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='航空航天'" + (selectJson["航空航天"]==true?"checked":"")+
                        "/>航空航天</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzhy' value='电气设备'" + (selectJson["电气设备"]==true?"checked":"")+
                        "/>电气设备</div>" +
                        "<div class='clear'></div>"+
                        "</div>" +
                        "<input class='pop-submit' onclick='hidePopSelectHY(this)' type='button'' value='确定'/>" +
                        "</div>";

                popDiv = dialog({
                    title: '请选择投资行业',
                    content:HYcontent
                });
                popDiv.showModal();
            }

            function hidePopSelectHY(ele){
                var selectedstr="<div class='fl'>已选择行业:</div><div class='fl' style='width:300px'>";
                var selectedValue="";
                var checkList=$(ele).parent().find("input[name='tzhy']:checked");
                for(var i=0;i<checkList.length;i++){
                    if(i==checkList.length-1){
                        selectedValue+=checkList[i].nextSibling.nodeValue
                    }else{
                        selectedValue+=checkList[i].nextSibling.nodeValue+",";
                    }

                }
                selectedstr+=(selectedValue+"</div><input type='hidden' name='selectedHY' value='"+selectedValue+"'/>");

                $("#selectedHY").html(selectedstr);
                popDiv.close().remove();

            }
            var popDiv;

            function popSelectDQ(ele) {
                var selectJson = {};
                if (document.form1.selectedDQ) {
                    var selectedArr = document.form1.selectedDQ.value.split(",");
                    for (var i = 0; i < selectedArr.length; i++) {
                        selectJson[selectedArr[i]] = true;
                    }
                }

                var DQcontent="<div class='pop-select'><div class='invest-comp-r'>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='广州'"+ (selectJson["广州"]==true?"checked":"")+
                        "/>广州</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='四川'" + (selectJson["四川"]==true?"checked":"")+
                        "/>四川</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='安徽'" + (selectJson["安徽"]==true?"checked":"")+
                        "/>安徽</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='江苏'" + (selectJson["江苏"]==true?"checked":"")+
                        "/>江苏</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='天津'" + (selectJson["天津"]==true?"checked":"")+
                        "/>天津</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='北京'" + (selectJson["北京"]==true?"checked":"")+
                        "/>北京</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='上海'" + (selectJson["上海"]==true?"checked":"")+
                        "/>上海</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='湖北'" + (selectJson["湖北"]==true?"checked":"")+
                        "/>湖北</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='湖南'" + (selectJson["湖南"]==true?"checked":"")+
                        "/>湖南</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='tzdq' value='海南'" + (selectJson["海南"]==true?"checked":"")+
                        "/>海南</div>" +
                        "<div class='clear'></div>"+
                        "</div>" +
                        "<input class='pop-submit' onclick='hidePopSelectDQ(this)' type='button'' value='确定'/>" +
                        "</div>";
                popDiv = dialog({
                    title: '请选择地区',
                    content:DQcontent
                });
                popDiv.showModal();
            }

            function hidePopSelectDQ(ele){
                var selectedstr="<div class='fl'>已选择地区:</div><div class='fl' style='width:300px'>";
                var selectedValue="";
                var checkList=$(ele).parent().find("input[name='tzdq']:checked");
                for(var i=0;i<checkList.length;i++){
                    if(i==checkList.length-1){
                        selectedValue+=checkList[i].nextSibling.nodeValue
                    }else{
                        selectedValue+=checkList[i].nextSibling.nodeValue+",";
                    }
                }

                selectedstr+=(selectedValue+"</div><input type='hidden' name='selectedDQ' value='"+selectedValue+"'/>");
                $("#selectedDQ").html(selectedstr);
                popDiv.close().remove();

            }


            function popSelectZJ(ele){

                var selectJson = {};
                if (document.form1.selectedZJ) {
                    var selectedArr = document.form1.selectedZJ.value.split(",");
                    for (var i = 0; i < selectedArr.length; i++) {
                        selectJson[selectedArr[i]] = true;
                    }
                }
                var ZJcontent="<div class='pop-select'><div class='invest-comp-r'>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='个人资金'" +(selectJson["个人资金"]==true?"checked":"")+
                        "/>个人资金</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='企业资金'" +(selectJson["企业资金"]==true?"checked":"")+
                        "/>企业资金</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='天使投资'" +(selectJson["天使投资"]==true?"checked":"")+
                        "/>天使投资</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='VC投资'" +(selectJson["VC投资"]==true?"checked":"")+
                        "/>VC投资</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='PE投资'" +(selectJson["PE投资"]==true?"checked":"")+
                        "/>PE投资</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='小额贷款'" +(selectJson["小额贷款"]==true?"checked":"")+
                        "/>小额贷款</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='典当公司'" +(selectJson["典当公司"]==true?"checked":"")+
                        "/>典当公司</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='担保公司'" +(selectJson["担保公司"]==true?"checked":"")+
                        "/>担保公司</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='租赁公司'" +(selectJson["租赁公司"]==true?"checked":"")+
                        "/>租赁公司</div>" +
                        "<div class='fl' style='width: 15%'><input type='checkbox'name='zjly' value='商业银行'" +(selectJson["商业银行"]==true?"checked":"")+
                        "/>商业银行</div>" +
                        "<div class='clear'></div>"+
                        "</div>" +
                        "<input class='pop-submit' onclick='hidePopSelectZJ(this)' value='确定'/>" +
                        "</div>";

                popDiv = dialog({
                    title: '请选择资金来源',
                    content:ZJcontent
                });
                popDiv.showModal();
            }

            function hidePopSelectZJ(ele){

                var selectedstr="<div class='fl'>已选择资金来源:</div><div class='fl' style='width:300px'>";
                var selectedValue="";
                var checkList=$(ele).parent().find("input[name='zjly']:checked");
                for(var i=0;i<checkList.length;i++){
                    if(i==checkList.length-1){
                        selectedValue+=checkList[i].nextSibling.nodeValue
                    }else{
                        selectedValue+=checkList[i].nextSibling.nodeValue+",";
                    }
                }

                selectedstr+=(selectedValue+"</div><input type='hidden' name='selectedZJ' value='"+selectedValue+"'/>");
                $("#selectedZJ").html(selectedstr);
                popDiv.close().remove();
            }

        </script>

        <div class="invest-input-item">
            <div class="invest-input-label">
                <div class="fr">所投行业:</div>
            </div>
            <div class="invest-import-tip underline" onclick="popSelectHY(this)">请选择所投行业</div>
            <div class="invest-tip-info error">普通会员最多可选5个行业</div>
            <div class="clear"></div>
            <div class="invest-input-label"></div>
            <div class="invest-input-text c-red" id="selectedHY">已选择行业:</div>
            <div class="clear"></div>
        </div>

        <div class="invest-input-item">
            <div class="invest-input-label">
                <div class="fr">感兴趣地区:</div>
            </div>
            <div class="invest-import-tip underline" onclick="popSelectDQ(this)">选择感兴趣地区</div>
            <div class="clear"></div>
            <div class="invest-input-label"></div>
            <div class="invest-input-text c-red" id="selectedDQ">已选择地区:福建省,湖南省,湖北省,海南省,江西省,上海</div>
            <div class="clear"></div>
        </div>

        <div class="invest-input-btn">
            <input class="pop-input-btn-sub center" type="button" value="确定" onclick="closeWindow()">
        </div>
    </div>
</div>
</form>
</body>
<script>

    function closeWindow(){
        window.parent.closePopWindow();
    }

</script>
</html>